Fix the previous commit
authorMatthias Clasen <mclasen@redhat.com>
Tue, 24 Feb 2015 03:25:11 +0000 (22:25 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 24 Feb 2015 03:25:11 +0000 (22:25 -0500)
The C_() macro only takes string literals.
Use g_dpgettext2() instead

gtk/gtkimmulticontext.c

index 6422abe6faab1bd349676fe1bf5115ab466de073..5ffb7e9223d6de1d4ea07257118b9d124d6a2973 100644 (file)
@@ -634,7 +634,7 @@ gtk_im_multicontext_append_menuitems (GtkIMMulticontext *context,
                   * GTK+. Input method may have a name in the GTK+
                   * message catalog.
                   */
-                 translated_name = C_("input method menu", contexts[i]->context_name);
+                 translated_name = g_dpgettext2 (GETTEXT_PACKAGE, "input method menu", contexts[i]->context_name);
                }
              else
                {
@@ -646,7 +646,7 @@ gtk_im_multicontext_append_menuitems (GtkIMMulticontext *context,
                  g_warning ("Input method %s should not use GTK's translation domain %s",
                             contexts[i]->context_id, GETTEXT_PACKAGE);
                  /* Try translating the name in GTK+'s domain */
-                 translated_name = _(contexts[i]->context_name);
+                 translated_name = g_dpgettext2 (GETTEXT_PACKAGE, "input method menu", contexts[i]->context_name);
                }
            }
          else if (contexts[i]->domain_dirname && contexts[i]->domain_dirname[0])